import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type Result = {
  success: boolean;
  msg: string;
  data: Array<any>;
};
// 获取审批类型选项
export const getAsyncsplx = () => {
  return http.request<Result>("get", baseUrlApi("get_approval_types/"));
};
// 获取所有单位
export const getAsyncunits = () => {
  return http.request<Result>("get", baseUrlApi("get_units/"));
};
// 填报人可撤回事项
export const getAsyncscsxs = () => {
  return http.request<Result>("get", "/shenpi-recall-routes");
};
// 驳回事项
export const getAsynchdbsxs = () => {
  return http.request<Result>("get", "/shenpi-hdbsx-routes");
};
